﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;

namespace Demo_jQuery_pager_plugin
{
    /// <summary>
    /// CalProductCounts 的摘要说明
    /// </summary>
    public class CalProductCounts : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            context.Response.Write(SqlHelper.ExecuteScalar(SqlHelper.ConnectionString, CommandType.Text, "select count(*) from EASYBUY_PRODUCT").ToString());
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}